import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/in_out_record_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/in_out_record_entity.g.dart';

@JsonSerializable()
class InOutRecordEntity {
  InOutRecordEntity();

  factory InOutRecordEntity.fromJson(Map<String, dynamic> json) => $InOutRecordEntityFromJson(json);

  ///	出入库时间
  String? createDate = '';

  ///	主键id
  String? id = '';

  ///	产品名称
  String? productId = '';

  ///	产品名称
  String? productName = '';

  ///	出入库总量
  int? recordNum = 0;

  ///	出入库编号
  String? recordNumber = '';

  ///	出入库类型 0：出库 1：入库
  int? recordType = 0;

  ///	出入库人id
  String? warehouseEntryAndExitPersonnelId = '';

  ///	出入库人姓名
  String? warehouseEntryAndExitPersonnelName = '';

  ///	仓库id
  String? warehouseId = '';

  ///	仓库名称
  String? warehouseName = '';

  Map<String, dynamic> toJson() => $InOutRecordEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
